예제 #1
0
        public void MatchesStringIndex()
        {
            IndexStrategy strategy = IndexStrategy.ForStringIndex();

            Assert.That(strategy.Matches(Binder.GetIndexBinder(1), new object[] { "Value" }), Is.True);
        }
예제 #2
0
        public void DoesNotMatchIntIndex()
        {
            IndexStrategy strategy = IndexStrategy.ForStringIndex();

            Assert.That(strategy.Matches(Binder.GetIndexBinder(1), new object[] { 100 }), Is.False);
        }