public void UnixTimeConstructorTest()
        {
            var unixDateTime = new UnixDateTime(UnixTime);

            Assert.That(unixDateTime.UnixTimeStamp, Is.EqualTo(UnixTime));
            Assert.That(unixDateTime.DateTime, Is.EqualTo(_dateTime));
        }
        public void EmptyConstructorTest()
        {
            var unixDateTime = new UnixDateTime();

            Assert.That(unixDateTime.UnixTimeStamp, Is.EqualTo(0));
            Assert.That(unixDateTime.DateTime, Is.EqualTo(DateTime.MinValue));
        }
        public void SerializationTest()
        {
            var unixDateTime = new UnixDateTime(UnixTime);

            XmlSerializer serializer = new XmlSerializer(typeof(UnixDateTime));

            StringBuilder xml = new StringBuilder();

            using(StringWriter sw = new StringWriter(xml))
            {
                serializer.Serialize(sw, unixDateTime);
            }

            string expectedXml = @"<?xml version=""1.0"" encoding=""utf-16""?>
            <UnixDateTime>1388497944</UnixDateTime>";

            Assert.That(xml.ToString(), Is.EqualTo(expectedXml));
        }