public void When_document_has_no_attribute_Then_return_null() { // Arrange var locator = new VersionLocator(); // Act var currentVersion = locator.GetCurrentVersion(typeof(TestDocumentWithoutAttribute)); // Assert currentVersion.Should().BeNull(); }
public void Then_find_current_version_of_document() { // Arrange var locator = new VersionLocator(); // Act var currentVersion = locator.GetCurrentVersion(typeof(TestDocumentWithOneMigration)); // Assert currentVersion.ToString().Should().Be("0.0.1"); }