public void List_WhenCameraIdExists_AndNewCameraIdentifier_ShouldReturnDetails() { // GIVEN var moduleDispatcher = new ModuleDispatcher(); var module = new CamerasModule(moduleDispatcher); var cameraFileName = _WriteCameraResourceToFile(); // WHEN module.List(new string[] { cameraFileName, "315" }); // THEN var expectedOutput = _ReadTextFromResourceFile("Djey.TduModdingTools.CLI.Resources.ListCameraOutput-Default.json"); Assert.AreEqual(expectedOutput, moduleDispatcher.ModuleOutput); }
private static void CamListDelegate(CamerasModule module, string cameraFileName) { module.List(new string[] { cameraFileName, "000" }); }