예제 #1
0
        public void GetCustomizationShouldReturnExpectedType(AutoMoqAttribute sut)
        {
            // Arrange
            var expected = typeof(AutoMoqCustomization);

            // Act
            var actual = sut.GetCustomization();

            // Assert
            Assert.AreEqual(expected, actual.GetType());
        }
예제 #2
0
        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);
        }