public void SarifFileWithContents_HandlesEmptyTextContents()
        {
            Models.ArtifactDetailsModel fileDetail = this.CurrentRunDataCache.FileDetails[Key6];
            string contents = fileDetail.GetContents();

            fileDetail.Sha256Hash.Should().Be(EmptyStringHash);
            contents.Should().Be(string.Empty);
        }
        public async Task SarifFileWithContents_DecodesTextContents()
        {
            await TestUtilities.InitializeTestEnvironmentAsync(this.testLog);

            Models.ArtifactDetailsModel fileDetail = this.CurrentRunDataCache.FileDetails[Key3];
            string contents = fileDetail.GetContents();

            contents.Should().Be(ExpectedContents1);
        }
        public async Task SarifFileWithContents_GeneratesHash()
        {
            await TestUtilities.InitializeTestEnvironmentAsync(this.testLog);

            Models.ArtifactDetailsModel fileDetail = this.CurrentRunDataCache.FileDetails[Key1];
            string contents = fileDetail.GetContents();

            fileDetail.Sha256Hash.Should().Be(ExpectedHashValue1);
            contents.Should().Be(ExpectedContents1);
        }
        public async Task SarifFileWithContents_HandlesEmptyBinaryContents()
        {
            await TestUtilities.InitializeTestEnvironmentAsync(this.testLog);

            Models.ArtifactDetailsModel fileDetail = this.CurrentRunDataCache.FileDetails[Key5];
            string contents = fileDetail.GetContents();

            fileDetail.Sha256Hash.Should().Be(EmptyStringHash);
            contents.Should().Be(string.Empty);
        }