Example #1
0
 public void AtomicUInt64ResetsToZero()
 {
     AtomicUInt64 target = new AtomicUInt64 () {
         Value = 18446744073709551615
     };
     Assert.AreEqual (18446744073709551615, target.Value);
     Assert.AreEqual ((ulong)0, target.IncrementAndReturn ());
 }
Example #2
0
 public void AtomicUInt64StartsAtDefaultValue()
 {
     AtomicUInt64 target = new AtomicUInt64 ();
     Assert.AreEqual (AtomicUInt64.Info.DefaultValue, target.Value);
 }