public void TestDistributionUniversal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, new List <object>() { "Distribution", "Universal" }, 8); }
public void TestSecurityUniversal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, new List <object>() { "Security", "Universal" }, -2147483640); }
public void TestDistributionDomainLocal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, new List <object>() { "Distribution", "DomainLocal" }, 4); }
public void TestSecurityDomainLocal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, new List <object>() { "Security", "DomainLocal" }, -2147483644); }
public void TestSerialization() { UniqueIDCache.ClearIdCache(); GroupStringsToADGroupTypeTransform transformToSeralize = new GroupStringsToADGroupTypeTransform(); transformToSeralize.ID = "test001"; UniqueIDCache.ClearIdCache(); GroupStringsToADGroupTypeTransform deserializedTransform = (GroupStringsToADGroupTypeTransform)UnitTestControl.XmlSerializeRoundTrip <Transform>(transformToSeralize); Assert.AreEqual(transformToSeralize.ID, deserializedTransform.ID); }
public void PerformanceTest() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); UnitTestControl.PerformanceTest(() => { Assert.AreEqual(-2147483646L, transform.TransformValue(new List <object>() { "Security", "Global" }).First()); }, 300000); }
public void TestSingleValueUniversal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, "Universal", 8); }
public void TestSingleValueDomainLocal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, "DomainLocal", 4); }
public void TestSingleValueGlobal() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, "Global", 2); }
public void TestSingleValueDistribution() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, "Distribution", 2); }
public void TestSingleValueSecurity() { GroupStringsToADGroupTypeTransform transform = new GroupStringsToADGroupTypeTransform(); this.ExecuteTest(transform, "Security", -2147483646); }
private void ExecuteTest(GroupStringsToADGroupTypeTransform transform, IList <object> sourceValues, long expectedValue) { long outValue = (long)(transform.TransformValue(sourceValues).FirstOrDefault()); Assert.AreEqual(expectedValue, outValue); }
private void ExecuteTest(GroupStringsToADGroupTypeTransform transform, string sourceValue, long expectedValue) { long outValue = (long)(transform.TransformValue(sourceValue)).First(); Assert.AreEqual(expectedValue, outValue); }
public GroupStringsToADGroupTypeTransformViewModel(GroupStringsToADGroupTypeTransform model) : base(model) { this.model = model; }