Beispiel #1
0
 public bool Contains(Month value)
 {
     return(Contains(value.ToDateTime()));
 }
Beispiel #2
0
 public Date(Month month,
             int day)
     : this(month.Year, month.MonthOfYear, day)
 {
 }
Beispiel #3
0
 public void op_FromString_stringNull()
 {
     Assert.Throws <ArgumentNullException>(() => Month.FromString(null));
 }
Beispiel #4
0
 public void op_FromString_stringEmpty(string value)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Month.FromString(value));
 }
Beispiel #5
0
        public void op_Equals_objectDiffers()
        {
            var obj = new Month(DateTime.Now);

            Assert.False(new Month().Equals(obj));
        }
Beispiel #6
0
        public void op_Equals_object()
        {
            object obj = new Month();

            Assert.True(new Month().Equals(obj));
        }
Beispiel #7
0
        public void op_Equals_Month()
        {
            var obj = new Month();

            Assert.True(new Month().Equals(obj));
        }