Пример #1
0
        public void TestSqua()
        {
            // Arrange
            var calc = new Calculator();

            // Act
            var squa  = calc.Squa(2);
            var squa1 = calc.Squa(0);
            var squa2 = calc.Squa(1);

            // Assert
            Assert.AreEqual(4, squa);
            Assert.AreEqual(0, squa1);
            Assert.AreEqual(1, squa2);
        }