public void AlgorithmIdentifier() { Assert.IsNotNull(new AlgorithmIdentifier("VariableName")); Assert.IsNotNull(new AlgorithmIdentifier(" Variable Name ")); Assert.ThrowsException <ArgumentException>(() => { new AlgorithmIdentifier(""); }); Assert.ThrowsException <ArgumentException>(() => { new AlgorithmIdentifier(" "); }); Assert.ThrowsException <ArgumentException>(() => { new AlgorithmIdentifier(" "); }); var identifier = new AlgorithmIdentifier(" Variable Name "); Assert.AreEqual(identifier.ToString(), " Variable Name "); }