We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1385d commit f2f2325Copy full SHA for f2f2325
1 file changed
tests/SharedParameterFileTests.cs
@@ -343,6 +343,7 @@ public void FileIsSerializedProperly()
343
344
Assert.Equal(simpleSharedFromBuiltText, simpleSharedFromDisk);
345
}
346
+
347
/// <summary>
348
/// Saves the a catalog to a file.
349
/// </summary>
@@ -357,5 +358,14 @@ public void SavingSharedParametersToFile()
357
358
var sharedParamFileTmp = $"{Path.GetTempFileName()}.txt";
359
Assert.True(sharedParamFile.Save(sharedParamFileTmp) && File.Exists(sharedParamFileTmp));
360
361
362
+ /// <summary>
363
+ /// Tries to initialize shared param file with an ambiguous string.
364
+ /// </summary>
365
+ [Fact]
366
+ public void SharedParametersFromAmbiguousString()
367
+ {
368
+ Assert.Throws<InvalidDataException>(() => new SharedParameterFile("abc"));
369
+ }
370
371
0 commit comments