public void Parse_should_yield_results() { DISetup.SetupContainer(); var args = new ParserArgs() { ContentSHA = "sha", ModDependencies = new List <string> { "1" }, File = "common\\gfx\\test.png", ModName = "fake" }; var parser = new BinaryParser(new CodeParser(new Logger()), null); var result = parser.Parse(args).ToList(); result.Should().NotBeNullOrEmpty(); result.Count().Should().Be(1); for (int i = 0; i < 1; i++) { result[i].ContentSHA.Should().Be("sha"); result[i].Dependencies.First().Should().Be("1"); result[i].File.Should().Be("common\\gfx\\test.png"); switch (i) { case 0: result[i].Code.Trim().Should().BeNullOrEmpty(); result[i].Id.Should().Be("test"); result[i].ValueType.Should().Be(Common.ValueType.Binary); break; default: break; } result[i].ModName.Should().Be("fake"); result[i].Type.Should().Be("common\\gfx\\binary"); } }