示例#1
0
        public void ToString_ReturnsValue()
        {
            // arrange
            var nameString = new MultiplierPathString("Foo");

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

            // assert
            Assert.Equal(nameString.Value, value);
        }
示例#2
0
        public void AddOp_String_CombinedMultiplierPathString()
        {
            // arrange
            var a = new MultiplierPathString("Foo");
            var b = "Bar";

            // act
            MultiplierPathString combined = a + b;

            // assert
            Assert.Equal("FooBar", combined.ToString());
        }
示例#3
0
        public void Append_MultiplierPathString_CombinedMultiplierPathString()
        {
            // arrange
            var a = new MultiplierPathString("Foo");
            var b = new MultiplierPathString("Bar");

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

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