예제 #1
0
        public void ToStringTest()
        {
            // arrange
            const string expected = "[End]";
            var          target   = new TagEnd();

            // act
            var actual = target.ToString();

            // assert
            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void ToStringTest()
        {
            // arrange
            TagEnd target;
            string expected;
            string actual;

            expected = "[End]";
            target   = new TagEnd();

            // act
            actual = target.ToString();

            // assert
            Assert.AreEqual(expected, actual);
        }
예제 #3
0
    public void ToStringTest()
    {
      // arrange
      TagEnd target;
      string expected;
      string actual;

      expected = "[End]";
      target = new TagEnd();

      // act
      actual = target.ToString();

      // assert
      Assert.AreEqual(expected, actual);
    }
예제 #4
0
    public void ToStringWithIndentTest()
    {
      // arrange
      TagEnd target;
      string expected;
      string actual;
      string prefix;

      prefix = "test";
      expected = string.Format("{0}[End]", prefix);
      target = new TagEnd();

      // act
      actual = target.ToString(prefix);

      // assert
      Assert.AreEqual(expected, actual);
    }