mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2024-12-22 18:52:24 +00:00
4e2bb85623
- Restructured code to be event based with modules - Added MQTT module for Home Assistant - Added pushover notifications - Added web service API subscriptions file to persist subscriptions
23 lines
554 B
C#
23 lines
554 B
C#
using System;
|
|
using System.Text;
|
|
using System.Collections.Generic;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OmniLinkBridge;
|
|
|
|
namespace OmniLinkBridgeTest
|
|
{
|
|
[TestClass]
|
|
public class ExtensionTest
|
|
{
|
|
[TestMethod]
|
|
public void TestParseRange()
|
|
{
|
|
List<int> blank = "".ParseRanges();
|
|
Assert.AreEqual(0, blank.Count);
|
|
|
|
List<int> range = "1-3,5,6".ParseRanges();
|
|
CollectionAssert.AreEqual(new List<int>(new int[] { 1, 2, 3, 5, 6 }), range);
|
|
}
|
|
}
|
|
}
|