Пример #1
0
 public static void TryParseSuccess(string text, string expected)
 {
     Assert.AreEqual(true, ResistanceUnit.TryParse(text, out var result));
     Assert.AreEqual(expected, result.ToString());
 }
Пример #2
0
 public void TryParseSuccess(TestCase testCase)
 {
     Assert.AreEqual(true, ResistanceUnit.TryParse(testCase.Text, out ResistanceUnit result));
     Assert.AreEqual(testCase.Expected, result.ToString());
 }