public void VariableRepositoryTestClear() { IVariableRepository sut = new VariableRepository(); var doubleReference = sut.GetOrCreateVariable("AB", new short[] { 0, 0 }); doubleReference.SetValue(new Accumulator(4.0)); sut.Clear(); var doubleReference2 = sut.GetOrCreateVariable("AB", new short[] { 0, 0 }); Assert.AreEqual(0.0, doubleReference2.GetValue().ValueAsDouble()); }