Esempio n. 1
0
        public void PropertyDistinguishedNameIsValid()
        {
            // Act.
            ChangeModDn sut = new ChangeModDn(DistinguishedName, NewRdn, false, null);

            // Assert.
            Assert.Equal(DistinguishedName, sut.DistinguishedName);
        }
Esempio n. 2
0
        public void ShouldProcessNewSuperior()
        {
            // Act.
            ChangeModDn sut = new ChangeModDn(DistinguishedName, null, true, NewSuperior);

            // Assert.
            Assert.Equal(Rdn, sut.NewRdn);
            Assert.True(sut.DeleteOldRdn);
            Assert.Equal(NewSuperior, sut.NewSuperior);
            Assert.Equal(DumpNewSuperior, sut.Dump());
        }