コード例 #1
0
        public void Assert_AssertEqualText_AssertSuccessful()
        {
            // arrange
            var snapshotAssert = new XunitAssert();

            // act & assert
            snapshotAssert.Assert("{Same}", "{Same}");
        }
コード例 #2
0
        public void Assert_AssertUnequalText_ThrowsEqualException()
        {
            // arrange
            var snapshotAssert = new XunitAssert();

            // act
            Action action = () => snapshotAssert.Assert("{Same}", "{Sme}");

            // assert
            Assert.Throws <EqualException>(action);
        }