Esempio n. 1
0
        public void IsOfTypeShouldNotRaiseExceptionIfNotNull()
        {
            object foo    = new object();
            var    result = AssertArg.IsOfType <object>(foo, nameof(foo));

            Assert.AreEqual(foo, result);
        }
Esempio n. 2
0
        public void IsOfTypeShouldRaiseExceptionIfNotOfType()
        {
            object foo = new object();

            AssertArg.IsOfType <string>(foo, nameof(foo));
        }