public static void TryParseSuccess(string text, string expected) { Assert.AreEqual(true, ResistanceUnit.TryParse(text, out var result)); Assert.AreEqual(expected, result.ToString()); }
public void TryParseSuccess(TestCase testCase) { Assert.AreEqual(true, ResistanceUnit.TryParse(testCase.Text, out ResistanceUnit result)); Assert.AreEqual(testCase.Expected, result.ToString()); }