public void ConvertFromIssueType(IssueType cfamilyIssueType, AnalysisIssueType analysisIssueType) { CFamilyIssueToAnalysisIssueConverter.Convert(cfamilyIssueType).Should().Be(analysisIssueType); Action act = () => CFamilyIssueToAnalysisIssueConverter.Convert((IssueType)(-1)); act.Should().ThrowExactly <ArgumentOutOfRangeException>().And.ParamName.Should().Be("issueType"); }
public void TestInitialize() { lineHashCalculatorMock = new Mock <ILineHashCalculator>(); fileSystemMock = new Mock <IFileSystem>(); fileSystemMock.Setup(x => x.File.Exists(It.IsAny <string>())).Returns(false); testSubject = new CFamilyIssueToAnalysisIssueConverter(lineHashCalculatorMock.Object, fileSystemMock.Object); }
public void ConvertFromIssueType_InvalidValue_Throws() { Action act = () => CFamilyIssueToAnalysisIssueConverter.Convert((IssueType)(-1)); act.Should().ThrowExactly <ArgumentOutOfRangeException>().And.ParamName.Should().Be("issueType"); }
public void ConvertFromIssueType(IssueType cfamilyIssueType, AnalysisIssueType analysisIssueType) { CFamilyIssueToAnalysisIssueConverter.Convert(cfamilyIssueType).Should().Be(analysisIssueType); }
public void ConvertFromIssueSeverity(IssueSeverity cfamilySeverity, AnalysisIssueSeverity analysisIssueSeverity) { CFamilyIssueToAnalysisIssueConverter.Convert(cfamilySeverity).Should().Be(analysisIssueSeverity); }