Пример #1
0
        public void should_restrict_to_default_constructor_on_type_argument()
        {
            var demoObject = new DefaultCtorRestrictedGenericDemoClass <SayHelloByDefault>();

            // correct the variable value to fix the test
            const string expectedStringValue = default(string);

            Assert.Equal(expectedStringValue, demoObject.Value.ToString());
        }
        public void should_restrict_to_default_constructor_on_type_argument()
        {
            var demoObject = new DefaultCtorRestrictedGenericDemoClass<SayHelloByDefault>();

            // correct the variable value to fix the test
            const string expectedStringValue = default(string);

            Assert.Equal(expectedStringValue, demoObject.Value.ToString());
        }