예제 #1
0
        public void SingleDigitNumber()
        {
            // Arrange
            MathObject objToTest = new MathObject(2);
            // Act
            string result = objToTest.ToString();

            // Assert
            Assert.AreEqual("2", result);
        }
예제 #2
0
        public void ConvertsMathSymbolEnumToString()
        {
            // Arrange
            MathObject objToTest = new MathObject(Operator.Multiply);
            // Act
            string result = objToTest.ToString();

            // Assert
            Assert.AreEqual("*", result);
        }