ToString() public method

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

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

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