public void AtomicDataResource_Uninitialized_Exception() { var afloat = new AtomicFloat(); Assert.Throws <System.NullReferenceException>(() => { afloat.get(); }); Assert.Throws <System.NullReferenceException>(() => { afloat.set(1f); }); Assert.Throws <System.NullReferenceException>(() => { afloat.add(1f); }); Assert.Throws <System.NullReferenceException>(() => { afloat.Dispose(); }); }
public void Execute(int i) { afloat.add(1f); }