Exemplo n.º 1
0
        public void ToString_ReturnsValue()
        {
            // arrange
            var nameString = new NameString("Foo");

            // act
            string value = nameString.ToString();;

            // assert
            Assert.Equal(nameString.Value, value);
        }
Exemplo n.º 2
0
        public void AddOp_String_CombinedNameString()
        {
            // arrange
            var a = new NameString("Foo");
            var b = "Bar";

            // act
            NameString combined = a + b;

            // assert
            Assert.Equal("FooBar", combined.ToString());
        }
Exemplo n.º 3
0
        public void Append_NameString_CombinedNameString()
        {
            // arrange
            var a = new NameString("Foo");
            var b = new NameString("Bar");

            // act
            NameString combined = a.Add(b);

            // assert
            Assert.Equal("FooBar", combined.ToString());
        }