예제 #1
0
        public void Create()
        {
            ICurrencySet set = new CurrencySet(new[] { _xa, _xb, _xc });

            Assert.AreEqual(3, set.AllCurencies.Count);

            Assert.IsTrue(set.Contain(_xa));
            Assert.IsTrue(set.Contain(_xb));
            Assert.IsTrue(set.Contain(_xc));
        }
예제 #2
0
        public void NotContainCode()
        {
            var set = new CurrencySet(new[] { _xa, _xb, _xc });

            Assert.IsFalse(set.Contain("???"));
        }
예제 #3
0
        public void NotContainCurrency()
        {
            var set = new CurrencySet(new[] { _xa, _xb, _xc });

            Assert.IsFalse(set.Contain(new FakeCurrency()));
        }
예제 #4
0
        public void Contains()
        {
            var set = new CurrencySet(new[] { _xa, _xb, _xc });

            Assert.IsTrue(set.Contain(_xa.CharCode));
        }