Ejemplo n.º 1
0
 private static void CheckNotCorrupt(EnumParameter p, Guid value, IEnumeration enumeration)
 {
     Assert.That(p.Corrupted, Is.False);
     Assert.That(p.DisplayValue((a, b) => ""), Is.EqualTo(enumeration.GetName(value)));
     Assert.That(p.Value, Is.EqualTo(value));
     Assert.That(Guid.TryParse(p.ValueAsString(), out Guid guid), Is.True);
     Assert.That(guid, Is.EqualTo(p.Value));
 }
Ejemplo n.º 2
0
 private static void CheckCorrupt(EnumParameter p, string value)
 {
     Assert.That(p.Corrupted, Is.True);
     Assert.That(p.DisplayValue((a, b) => ""), Is.EqualTo(value));
     Assert.That(p.ValueAsString(), Is.EqualTo(value));
 }