Example #1
0
            public void ShouldConvertToExpectedValue(Energy original, Energy expected)
            {
                // arrange
                // act
                var actual = original.Convert(expected.Unit);

                // assert
                actual.Joules.Should().BeApproximately(expected.Joules);
                actual.Value.Should().BeApproximately(expected.Value);
                actual.Unit.Should().Be(expected.Unit);
            }