コード例 #1
0
        public static void Ctor_String()
        {
            string message   = "Created AmbiguousImplementationException";
            var    exception = new AmbiguousImplementationException(message);

            Assert.Equal(message, exception.Message);
            Assert.Equal(COR_E_AMBIGUOUSIMPLEMENTATION, exception.HResult);
        }
コード例 #2
0
        public static void Ctor_Empty()
        {
            var exception = new AmbiguousImplementationException();

            Assert.NotNull(exception);
            Assert.NotEmpty(exception.Message);
            Assert.Equal(COR_E_AMBIGUOUSIMPLEMENTATION, exception.HResult);
        }