public void ToString_GivenPassedIsNotSet_ShouldReturnRedForPlayerTestState() { //---------------Set up test pack------------------- var runResult = new PlayerTestsPlayerImplementationRunResult(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var toString = runResult.ToString(); //---------------Test Result ----------------------- Assert.AreEqual("Player Test State: Red", toString); }
private static OverallAnalysisResult GetOverallAnalysisResult( PlayerImplementationRunResult playerImplementationRunResult, PlayerTestsRunResult playerTestsRunResult, PlayerTestsPlayerImplementationRunResult playerTestsPlayerImplementationRunResult, Type kataTestsType) { var testMethodsRetriever = new TestMethodsRetriever(); var goldenTestMethods = testMethodsRetriever.GetTestMethods(kataTestsType); var overallAnalysisResult = new OverallAnalysisResult( playerImplementationRunResult, playerTestsRunResult, playerTestsPlayerImplementationRunResult, goldenTestMethods); return(overallAnalysisResult); }
public OverallAnalysisResult(PlayerImplementationRunResult playerImplementationRunResult, PlayerTestsRunResult playerTestsRunResult, PlayerTestsPlayerImplementationRunResult playerTestsPlayerImplementationRunResult, ITestMethod[] goldenTestMethods) { this.PlayerImplementationRunResult = playerImplementationRunResult; this.PlayerTestsRunResult = playerTestsRunResult; this.PlayerTestsPlayerImplementationRunResult = playerTestsPlayerImplementationRunResult; this.GoldenTestMethods = goldenTestMethods; }