public void GetCustomizationShouldReturnExpectedType(AutoMoqAttribute sut) { // Arrange var expected = typeof(AutoMoqCustomization); // Act var actual = sut.GetCustomization(); // Assert Assert.AreEqual(expected, actual.GetType()); }
public void GetCustomizationShouldReturnCustomizationWithExpectedValues(AutoMoqAttribute sut) { // Arrange var expectedConfigureMembers = true; var expectedGenerateDelegates = true; sut.ConfigureMembers = expectedConfigureMembers; sut.GenerateDelegates = expectedGenerateDelegates; // Act var actual = (AutoMoqCustomization)sut.GetCustomization(); // Assert Assert.AreEqual(expectedConfigureMembers, actual.ConfigureMembers); Assert.AreEqual(expectedGenerateDelegates, actual.GenerateDelegates); }