<commit_before>﻿using System.IO;
using AppHarbor.Commands;
using Moq;
using Xunit;

namespace AppHarbor.Tests.Commands
{
	public class LogoutAuthCommandTest
	{
		[Fact]
		public void ShouldLogoutUser()
		{
			var accessTokenConfigurationMock = new Mock<AccessTokenConfiguration>();
			var writer = new Mock<TextWriter>();
			var logoutCommand = new LogoutAuthCommand(accessTokenConfigurationMock.Object, writer.Object);

			logoutCommand.Execute(new string[0]);

			writer.Verify(x => x.WriteLine("Successfully logged out."));
			accessTokenConfigurationMock.Verify(x => x.DeleteAccessToken(), Times.Once());
		}
	}
}<commit_msg>Use AutoFixture to populate test objects<commit_after>﻿using System.IO;
using AppHarbor.Commands;
using Moq;
using Ploeh.AutoFixture.Xunit;
using Xunit.Extensions;

namespace AppHarbor.Tests.Commands
{
	public class LogoutAuthCommandTest
	{
		[Theory, AutoCommandData]
		public void ShouldLogoutUser([Frozen]Mock<IAccessTokenConfiguration> accessTokenConfigurationMock, [Frozen]Mock<TextWriter> writer, LogoutAuthCommand logoutCommand)
		{
			logoutCommand.Execute(new string[0]);

			writer.Verify(x => x.WriteLine("Successfully logged out."));
			accessTokenConfigurationMock.Verify(x => x.DeleteAccessToken(), Times.Once());
		}
	}
}
{'fraction_non_alphanumeric': 0.11067193675889328, 'fraction_numerical': 0.0015810276679841897, 'mean_word_length': 6.1525423728813555, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5624220', 'n_tokens_mistral': 410, 'n_tokens_neox': 386, 'n_words': 78}