public void Constructor_SetsToPoint_WhenCalled()
        {
            // Arrange
            // Act
            PointDistanceCalculator sut = CreateSut();

            // Assert
            Assert.True(sut.ToPoint.IsUnknown);
        }
        public void Constructor_SetsDistance_WhenCalled()
        {
            // Arrange
            // Act
            PointDistanceCalculator sut = CreateSut();

            // Assert
            Assert.AreEqual(double.NaN,
                            sut.Distance);
        }
        public void Calculate_SetsDistance_ForGivenPoints(
            [NotNull] PointDistanceCalculator sut)
        {
            // Arrange
            const double expected = 1.7320508075688772;

            var from = new Point(3.0,
                                 4.0,
                                 5.0);
            var to = new Point(4.0,
                               5.0,
                               6.0);

            sut.FromPoint = from;
            sut.ToPoint   = to;

            // Act
            sut.Calculate();

            // Assert
            NUnitHelper.AssertIsEquivalent(expected,
                                           sut.Distance);
        }
 public void Setup() => _calculator = new PointDistanceCalculator();