ToString() public method

Creates a string representation of the path and identifier
public ToString ( ) : string
return string
Example #1
0
 public void ShouldCreateQuotedString()
 {
     var res = new Resource("value", "name");
     Assert.That(res.ToString(), Is.EqualTo("\"value\",name"));
 }
        public void ShouldCreateQuotedString()
        {
            var res = new Resource("value", "name");

            Assert.That(res.ToString(), Is.EqualTo("\"value\",name"));
        }
Example #3
0
 public void IfEmptyNameThenJustValueShouldBeReturned()
 {
     var res = new Resource("value", String.Empty);
     Assert.That(res.ToString(), Is.EqualTo("\"value\""));
 }
        public void IfEmptyNameThenJustValueShouldBeReturned()
        {
            var res = new Resource("value", String.Empty);

            Assert.That(res.ToString(), Is.EqualTo("\"value\""));
        }