public void EqualityMembersCorrectDefined() { // Fixture setup // Exercise system and verify outcome EqualityTestsFor <GuidName> .Assert(); }
public void EqualityMembersCorrectDefined() { // Fixture setup var configuration = EqualityTestsConfigurer <Rdn> .Instance(Rdn.Parse("CN=John")) .ShouldBeEqualTo(Rdn.Parse("CN=John")) .ShouldNotBeEqualTo(Rdn.Parse("CN=George")); // Exercise system and verify outcome EqualityTestsFor <Rdn> .Assert(() => configuration); }
public void EqualityMembersCorrectDefined() { // Fixture setup Fixture.Inject(new SecurityIdentifier("S-1-5-32-544")); var otherName = new SidName(new SecurityIdentifier("S-1-5-32-545")); var configuration = EqualityTestsConfigurer <SidName> .Instance(sidName) .ShouldBeEqualTo(sidName) .ShouldNotBeEqualTo(otherName); // Exercise system and verify outcome EqualityTestsFor <SidName> .Assert(() => configuration, Fixture); }
public void EqualityMembersCorrectDefined() { // Fixture setup var dn = DN.Parse("CN=John,OU=Users,DC=domain,DC=com"); var otherDn = DN.Parse("CN=John,OU=Users,DC=OMSK,DC=domain,DC=com"); // ReSharper disable once ImplicitlyCapturedClosure Fixture.Inject(dn.Rdns.ToArray()); var configuration = EqualityTestsConfigurer <DN> .Instance(dn) .ShouldBeEqualTo(dn) .ShouldNotBeEqualTo(otherDn); // Exercise system and verify outcome EqualityTestsFor <DN> .Assert(() => configuration, Fixture); }
public void EqualityMembersCorrectDefined() { // Fixture setup var adsPath = new AdsPath(objectName); var otherPath = new AdsPath(new GuidName(Guid.Empty)); Fixture.Inject(adsPath); Fixture.Inject(objectName); var configuration = EqualityTestsConfigurer <AdsPath> .Instance(adsPath) .ShouldBeEqualTo(adsPath) .ShouldNotBeEqualTo(otherPath); // Exercise system and verify outcome EqualityTestsFor <AdsPath> .Assert(() => configuration, Fixture); }
public void EqualityMembersCorrectDefined() { // Fixture setup EqualityTestsFor <Enumeration> .Assert(); }