public void TestCreateProtocolQuery()
 {
     query = new WindowsFormsApplication1.ProtocolQuery("TCP");
     Assert.That(query, Is.Not.Null);
     Assert.That(query, Is.InstanceOf(typeof(WindowsFormsApplication1.Query)));
     Assert.That(query, Is.TypeOf(typeof(WindowsFormsApplication1.ProtocolQuery)));
     Assert.That(query.IsSatisfiedBy(parametr1), Is.True);
     Assert.That(query.IsSatisfiedBy(parametr2), Is.False);
     query = new WindowsFormsApplication1.ProtocolQuery("");
     Assert.That(query.IsSatisfiedBy(parametr1), Is.True);
     Assert.That(query.IsSatisfiedBy(parametr2), Is.True);
 }
 public void TestCreateTypeQuery()
 {
     query = new WindowsFormsApplication1.TypeQuery("Компьютер");
     Assert.That(query, Is.Not.Null);
     Assert.That(query, Is.InstanceOf(typeof(WindowsFormsApplication1.Query)));
     Assert.That(query, Is.TypeOf(typeof(WindowsFormsApplication1.TypeQuery)));
     Assert.That(query.IsSatisfiedBy(device1), Is.True);
     Assert.That(query.IsSatisfiedBy(device2), Is.False);
     query = new WindowsFormsApplication1.TypeQuery("");
     Assert.That(query.IsSatisfiedBy(device1), Is.True);
     Assert.That(query.IsSatisfiedBy(device2), Is.True);
 }