static private GetDefaultProblem ( ) : |
||
Результат |
public void AndroidStudioConverter_ConvertToSarifResult_UsesProblemClassForRuleId() { var uut = AndroidStudioProblemTests.GetDefaultProblem(); Result result = new AndroidStudioConverter().ConvertProblemToSarifResult(uut); Assert.AreEqual("A Problematic Problem", result.RuleId); }
public void AndroidStudioConverter_ConvertToSarifResult_HasNoPropertiesIfAttributeKeyAndSeverity() { var uut = AndroidStudioProblemTests.GetDefaultProblem(); Result result = new AndroidStudioConverter().ConvertProblemToSarifResult(uut); Assert.IsNull(result.Properties); }
public void AndroidStudioConverter_GetShortDescription_UsesProblemClassIfDescriptionNotPresent() { var uut = AndroidStudioProblemTests.GetDefaultProblem(); string result = AndroidStudioConverter.GetShortDescriptionForProblem(uut); result.Should().Contain("A Problematic Problem"); }