示例#1
0
        public void ReturnSelfCustomization(SubstituteAttribute sut, MethodInfo method)
        {
            // Act
            IArgNullExCustomization customization = sut.GetCustomization(method);

            // Assert
            Assert.Same(sut, customization);
        }
        public void ReturnSelfCustomization(SubstituteAttribute sut, MethodInfo method)
        {
            // Act
            IArgNullExCustomization customization = sut.GetCustomization(method);

            // Assert
            Assert.Same(sut, customization);
        }
示例#3
0
        public void InitializeWithTypes()
        {
            // Act
            var sut = new SubstituteAttribute(typeof(Dictionary <,>), typeof(Dictionary <string, string>));

            // Assert
            Assert.Same(typeof(Dictionary <,>), sut.OriginalType);
            Assert.Same(typeof(Dictionary <string, string>), sut.NewType);
        }
        public void InitializeWithTypes()
        {
            // Act
            var sut = new SubstituteAttribute(typeof(Dictionary<,>), typeof(Dictionary<string, string>));

            // Assert
            Assert.Same(typeof(Dictionary<,>), sut.OriginalType);
            Assert.Same(typeof(Dictionary<string, string>), sut.NewType);
        }
示例#5
0
 public void BeACustomization(SubstituteAttribute sut)
 {
     // Assert
     Assert.IsAssignableFrom <IArgNullExCustomization>(sut);
     Assert.IsAssignableFrom <CustomizeAttribute>(sut);
 }
 public void BeACustomization(SubstituteAttribute sut)
 {
     // Assert
     Assert.IsAssignableFrom<IArgNullExCustomization>(sut);
     Assert.IsAssignableFrom<CustomizeAttribute>(sut);
 }