public void ReturnDeserializedResultFromCreatedProcess(MockJarFileProcessFactory factory, VerifierResult expected) { var verifier = new JarFileVerifier(factory); var result = verifier.Verify(new Level(), ""); Assert.Equal(expected, result, new VerifierResultEqualityComparer()); }
public void PassCorrectParametersToProcessFactory(MockJarFileProcessFactory factory, Level level, string user) { var verifier = new JarFileVerifier(factory); verifier.Verify(level, user); Assert.Equal(level.GetVerifierFilepath(), factory.JarPath); Assert.Equal(level.GetProjectFolder(user), factory.ProjectFolder); Assert.Equal(level.GetUserFolder(user), factory.UserFolder); }