Eliminated warnings that still came up when compiling with the mono C# compiler; all classes in the Nuclex.Support.Scheduling namespace now have 100% test coverage
git-svn-id: file:///srv/devel/repo-conversion/nusu@103 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
00caebf7e9
commit
88b51ef0fa
15 changed files with 516 additions and 5 deletions
|
@ -145,7 +145,7 @@ namespace Nuclex.Support.Collections {
|
|||
|
||||
if(!(testCollection as ICollection).IsSynchronized) {
|
||||
lock((testCollection as ICollection).SyncRoot) {
|
||||
int count = testCollection.Count;
|
||||
Assert.AreEqual(0, testCollection.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,6 +180,7 @@ namespace Nuclex.Support.Collections {
|
|||
ReadOnlyDictionary<int, string> testDictionary = makeReadOnly(numbers);
|
||||
|
||||
string numberName = testDictionary[24];
|
||||
Console.WriteLine(numberName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -423,7 +424,7 @@ namespace Nuclex.Support.Collections {
|
|||
|
||||
if(!(testDictionary as ICollection).IsSynchronized) {
|
||||
lock((testDictionary as ICollection).SyncRoot) {
|
||||
int count = testDictionary.Count;
|
||||
Assert.AreEqual(numbers.Count, testDictionary.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -345,7 +345,7 @@ namespace Nuclex.Support.Collections {
|
|||
|
||||
if(!(testList as ICollection).IsSynchronized) {
|
||||
lock((testList as ICollection).SyncRoot) {
|
||||
int count = testList.Count;
|
||||
Assert.AreEqual(0, testList.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -241,6 +241,7 @@ namespace Nuclex.Support.Collections {
|
|||
[Test, ExpectedException(typeof(NotSupportedException))]
|
||||
public void TestThrowOnRetrievePosition() {
|
||||
long position = new RingMemoryStream(10).Position;
|
||||
Console.WriteLine(position.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -439,7 +439,7 @@ namespace Nuclex.Support.Collections {
|
|||
|
||||
if(!(testCollection as ICollection).IsSynchronized) {
|
||||
lock((testCollection as ICollection).SyncRoot) {
|
||||
int count = testCollection.Count;
|
||||
Assert.AreEqual(0, testCollection.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue