[Fact] //The False result is expected. Passed if fails. public void DeleteDoc_4() //The "method test" tests the DeleteDoc method by its id from specific collection //Verifies it doesn't exist { appConnection.ConnectServer("mongodb://127.0.0.1:27017", null); string db = "stasdb55"; string coll = "StasUnitTCreateColl6"; string id = "5d28b17813301f69d4cd33ba"; DeleteDoc del = new DeleteDoc(); del.DeleteDocs ( db, coll, id, appConnection ); UnitTest1 docID = new UnitTest1(); var result = docID.SelectDoc(db, coll, id); Assert.False(result); }
private void удалитьToolStripMenuItem_Click(object sender, EventArgs e) { DeleteDoc.Invoke(FullName); Hide(); Dispose(); }