public void Ctor_SetsDefaults() { // Arrange / Act var sut = new BranchOverrideConfiguration(); // Assert AssertUtils.AssertGetSetProperty(sut, nameof(sut.Match), x => x.Should().BeEmpty(), "test"); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Label), x => x.Should().BeNull(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.PrefixLabel), x => x.Should().BeNull(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.PostfixLabel), x => x.Should().BeNull(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.InsertLabel), x => x.Should().BeNull(), new Dictionary <int, string> { [1] = "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Metadata), x => x.Should().BeNull(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.PrefixMetadata), x => x.Should().BeNull(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.PostfixMetadata), x => x.Should().BeNull(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.InsertMetadata), x => x.Should().BeNull(), new Dictionary <int, string> { [1] = "test" }); }
public void Ctor_Property_Expectations() { var sut = new BranchConfiguration(); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Release), x => x.Should().BeEmpty(), (List <string>)null); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Overrides), x => x.Should().BeEmpty(), (List <BranchOverrideConfiguration>)null); }
public void Ctor_SetsDefaults() { // Arrange / Act var sut = new RepositoryConfiguration(); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Branches), x => x.Should().NotBeNull(), new BranchConfiguration { Release = { "test" } }); }
public void Ctor_SetsDefaults() { // Arrange / Act var sut = new VersionConfiguration(); // Assert AssertUtils.AssertGetSetProperty(sut, nameof(sut.Version), x => x.Should().BeEmpty(), "test"); AssertUtils.AssertGetSetProperty(sut, nameof(sut.OffSet), x => x.Should().Be(0), 50); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Label), x => x.Should().BeEmpty(), new List <string> { "test" }); AssertUtils.AssertGetSetProperty(sut, nameof(sut.Metadata), x => x.Should().BeEmpty(), new List <string> { "test" }); }