Reorganized the directory structure a bit; Created a new transforming collection for exposing the types in a collection under a different interface; moved Operation and associated classes to a new namespace; Implemented the basics of the SetProgression's observation mechanics
git-svn-id: file:///srv/devel/repo-conversion/nusu@11 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
f38a0bc1ea
commit
cefbc78868
15 changed files with 946 additions and 91 deletions
|
|
@ -11,14 +11,20 @@ namespace Nuclex.Support.Collections {
|
|||
[TestFixture]
|
||||
public class PriorityQueueTest {
|
||||
|
||||
/// <summary>Comparer for two floating point values</summary>
|
||||
private class FloatComparer : IComparer<float> {
|
||||
|
||||
/// <summary>The default instance of this comparer</summary>
|
||||
public static readonly FloatComparer Default = new FloatComparer();
|
||||
|
||||
/// <summary>Compares two floating points against each other</summary>
|
||||
/// <param name="left">First float to compare</param>
|
||||
/// <param name="right">Second float to compare</param>
|
||||
/// <returns>The relationship of the two floats to each other</returns>
|
||||
public int Compare(float left, float right) {
|
||||
return Math.Sign(left - right);
|
||||
}
|
||||
|
||||
public static readonly FloatComparer Default = new FloatComparer();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>Tests to ensure the count property is properly updated</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue