/// <summary> /// Register a new Tag to listen for. /// </summary> /// <param name="tagId">The <typeparamref name="TagId"/> of the new Tag.</param> /// <remarks>If the tag already exists or is registered, no error is generated, /// but it may be logged.</remarks> public void AddTag(TagId tagId) { if (passingStrategy.ContainsKey(tagId)) { // TODO: Log a message or error, throw an exception? } // TODO: We need a factory or someway to make this configurable. // TODO: Should we allow different strategies per tag? If so, how? passingStrategy[tagId] = new PassingTimeDumb(); }
public void HandlePassingTest() { long timeDeltaTolerance = 0; // TODO: Initialize to an appropriate value PassingTimeDumb target = new PassingTimeDumb(timeDeltaTolerance); // TODO: Initialize to an appropriate value TagReadEventArgs tagInfo = null; // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.HandlePassing(tagInfo); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void PassingTimeDumbConstructorTest() { long timeDeltaTolerance = 0; // TODO: Initialize to an appropriate value PassingTimeDumb target = new PassingTimeDumb(timeDeltaTolerance); Assert.Inconclusive("TODO: Implement code to verify target"); }