コード例 #1
0
ファイル: SimplePointTests.cs プロジェクト: perlv4am/MyASAP
        public void IsTheSame_ProvidingDifferentPoints_ReturnsFalse()
        {
            //Arrange
            SimplePoint simplePoint1 = new SimplePoint(0, 0);
            SimplePoint simplePoint2 = new SimplePoint(10, 10);

            //Act
            var result = simplePoint1.IsTheSame(simplePoint2, 3);

            //Assert
            Assert.False(result);
        }
コード例 #2
0
ファイル: SimplePointTests.cs プロジェクト: perlv4am/MyASAP
        public void IsTheSame_ProvidingTheSamePoints_ReturnsTrue()
        {
            //Arrange
            SimplePoint simplePoint1 = new SimplePoint(0, 0);
            SimplePoint simplePoint2 = new SimplePoint(0, 0);

            //Act
            var result = simplePoint1.IsTheSame(simplePoint2, 3);

            //Assert
            Assert.True(result);
        }