public void ReturnFalseAndNull_WhenParseFailed(string fileName) { var json = File.ReadAllText($"{projectPath}\\Tests\\data\\{fileName}"); var result = SimModel.TryParse(json, out var data); result.Should().BeFalse(); data.Should().BeNull(); }
public void Work_Correctly(string fileName) { var input = File.ReadAllText($"{assemblyPath}\\Tests\\data\\{fileName}.in"); var expectedOutput = File.ReadLines($"{assemblyPath}\\Tests\\data\\{fileName}.out"); SimModel.TryParse(input, out var data); var result = new SimQueryExecutor(data).ExecuteQueries(); result.Should().BeEquivalentTo(expectedOutput); }