Ejemplo n.º 1
0
        public void should_use_explict_interface_impl_if_you_want_to_hide_something_for_certain_type()
        {
            var readOnlyStreamWithWriteExplicitlyImpl = new ReadOnlyStream();

            var hasWriteMethod = readOnlyStreamWithWriteExplicitlyImpl.HasInstanceMethod(
                "Write",
                new[] {typeof(string)});

            // change the variable value to fix the test.
            const bool expectedHasWriteMethod = true;

            Assert.Equal(expectedHasWriteMethod, hasWriteMethod);
        }