Example #1
0
        public void GetGuitarTypeWithSuggestedName_should_Return_Tuple()
        {
            TupleExample tupleExample = new TupleExample();
            var          guitar       = tupleExample.GetGuitarTypeWithSuggestedName();

            Assert.AreEqual("Les Paul Studio", guitar.GuitarType);
            Assert.AreEqual(6, guitar.StringCount);
        }
Example #2
0
        public void GetGuitarTypeWithSuggestedName_Deconstruction()
        {
            TupleExample tupleExample = new TupleExample();

            (string GuitarType, int StringCount) = tupleExample.GetGuitarTypeWithSuggestedName();

            Assert.AreEqual("Les Paul Studio", GuitarType);
            Assert.AreEqual(6, StringCount);
        }
Example #3
0
        public void GetGuitarTypeWithSuggestedName_With_Changed_Name()
        {
            TupleExample tupleExample = new TupleExample();

            (string GuitarTypeChanged, int StringCountChanged)guitar = tupleExample.GetGuitarTypeWithSuggestedName();

            Assert.AreEqual("Les Paul Studio", guitar.GuitarTypeChanged);
            Assert.AreEqual(6, guitar.StringCountChanged);
        }