コード例 #1
0
        public async Task Execute_uses_Config_to_retrieve_document_identity()
        {
            // ARRANGE
            var input = GetInputsFromIdentities("[email protected]");

            var sut = new GatherVersions()
                      .WithDocumentIdentity(Config.FromValue(DocumentIdentity.Parse("[email protected]")));

            // ACT
            var output = await ExecuteAsync(input, sut).SingleAsync();

            // ASSERT
            output
            .Should().ContainSingle(x => x.Key == DocumentReferenceKeys.LatestDocumentVersion)
            .Which.Value
            .Should().BeAssignableTo <NuGetVersion>()
            .Which
            .Should().Be(NuGetVersion.Parse("2.0"));
        }
コード例 #2
0
 public GatherVersionsTest()
 {
     m_Instance = new GatherVersions();
 }