コード例 #1
0
        public void PassWhenDifferentReferences()
        {
            var object1 = new object();
            var object2 = new object();

            AssertAll.AreNotSame(object1, object2, "these are the same");
            AssertAll.Execute();
        }
コード例 #2
0
        public void FailWhenSameReference()
        {
            var object1 = new object();
            var object2 = object1;

            AssertAll.AreNotSame(object1, object2, "these are the same");

            Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute());
        }