コード例 #1
0
        public void testFrancMultiplication()
        {
            Franc five = new Franc(5);

            Assert.Equal(new Franc(10), five.times(2));

            Assert.Equal(new Franc(15), five.times(3));
        }
コード例 #2
0
        public void testFrancMultiplication()
        {
            // Arrange
            Franc five = new Franc(5);

            // Assert
            Assert.True(new Franc(10).equals(five.times(2)));
            // Assert
            Assert.True(new Franc(15).equals(five.times(3)));
        }