public void It_should_convert_datetime_to_binary_and_from_datetime_to_bool_with_the_success() { var value = new DateTime(1988, 8, 6); var byteArray = ByteArrayConverter.DateToByteArray(value); var convertedValue = ByteArrayConverter.ByteArrayToDate(byteArray); Assert.That(convertedValue, Is.EqualTo(value)); }