public void Convert_ShouldReturnExpectedResult(double yards, double expectedMeters) { var converter = new YardsToMetersConverter(""); var actualMeters = converter.Convert(yards); actualMeters.Should().BeApproximately(expectedMeters, 0.001); }
public void Name_ShouldReturnNameProvidedDuringConstruction(string name) { var converter = new YardsToMetersConverter(name); converter.Name.Should().Be(name); }