コード例 #1
0
        public void TestComment()
        {
            var actual   = "Hello";
            var expected = "Hello";

            Approvals.AssertText(expected, actual);
        }
コード例 #2
0
        public void MakerHeaderBefore()
        {
            // begin-snippet: assert_text_before
            var header   = new Header();
            var actual   = header.MakeHeading("I am ten chars");
            var expected = "";

            Approvals.AssertText(expected, actual);
            // end-snippet
        }
コード例 #3
0
        public void MakerHeadertest()
        {
            // begin-snippet: assert_text
            var header   = new Header();
            var actual   = header.MakeHeading("I am ten chars");
            var expected = new[] {
                "**************",
                "I am ten chars",
                "**************",
            };

            Approvals.AssertText(expected, actual);
            // end-snippet
        }