Beispiel #1
0
        public void OMM_ValueMapper_Find_NotFound_ReturnsNull()
        {
            ValueMapper <int> mapper = new ValueMapper <int>();
            int val = 1;

            Assert.IsNull(mapper.Find(val));
        }
Beispiel #2
0
        public void OMM_ValueMapper_Find_WithType_ReturnsNull()
        {
            ValueMapper <int> mapper = new ValueMapper <int>();
            int val = 1;

            Assert.IsNull(mapper.Find(val.GetType()));
        }
Beispiel #3
0
        public void OMM_ValueMapper_FindTypeNotSupported()
        {
            ValueMapper <int> mapper = new ValueMapper <int>();
            double            val    = 1.0;

            AssertExtension.Throws <InvalidOperationException>(() => mapper.Find(val));
        }