コード例 #1
0
 public void TryParseVersion_Valid_Success(byte[] source, Version expected)
 {
     Assert.True(IfoHelper.TryParseVersion(source, out var version));
     Assert.Equal(expected, version);
 }
コード例 #2
0
 public void TryParseVersion_Invalid_False(byte[] source)
 {
     Assert.False(IfoHelper.TryParseVersion(source, out var version));
     Assert.Null(version);
 }