public void ExceptionThrowWhenWildcardPresentsInLiteralPath() { var rawProject = Deserialize(@"{""compileFiles"": ""*.cs""}"); var exception = Assert.Throws <FileFormatException>(() => { var target = new ProjectFilesCollection(rawProject, string.Empty, string.Empty); target.EnsureInitialized(); }); Assert.Equal( "The 'compileFiles' property cannot contain wildcard characters.", exception.InnerException.Message); }
public void ExceptionThrowWhenWildcardPresentsInLiteralPath() { var rawProject = Deserialize(@"{""compileFiles"": ""*.cs""}"); var exception = Assert.Throws<FileFormatException>(() => { var target = new ProjectFilesCollection(rawProject, string.Empty, string.Empty); target.EnsureInitialized(); }); Assert.Equal( "The 'compileFiles' property cannot contain wildcard characters.", exception.InnerException.Message); }