है, मैं एक गणना में किसी विशेष आइटम की अनुपस्थिति के बारे में दावा करने के लिए संघर्ष कर रहा हूं।"{संग्रह} में कोई नॉनिट बाधा नहीं है जिसका अर्थ {item}"
// Take an item from a queue of scheduled items...
ItemQueue pendingQueue = schedule.PendingItems; // PendingItems is an IEnumerable<int>
int item = pendingQueue.FirstItem;
// ...process the item...
processor.DoSomethingWith(item);
// ...and the schedule must not contain the item anymore:
Assert.That(schedule.PendingItems, Does.Not.Contain(item));
बेशक
, Does.Not.Contain एक वैध NUnit बाधा नहीं है: विशेष रूप से, यह है कि क्या अपने परीक्षण लगता है कि है। मैं इसे वैध धाराप्रवाह वाक्यविन्यास में कैसे व्यक्त कर सकता हूं?
Has.None.EqualTo (आइटम) मेरी समस्या हल। धन्यवाद! – Humberto