Exemple #1
0
		public void Etag_guid_comparision()
		{
			var etag = new Raven.Abstractions.Data.Etag("01234567-8901-2345-6789-012345678901");
			var guid = new Guid("01234567-8901-2345-6789-012345678901");
			Assert.True(etag.Equals(guid));
			Assert.True(guid.Equals(etag));
		}
Exemple #2
0
        public void Etag_guid_comparision()
        {
            var etag = new Raven.Abstractions.Data.Etag("01234567-8901-2345-6789-012345678901");
            var guid = new Guid("01234567-8901-2345-6789-012345678901");

            Assert.True(etag.Equals(guid));
            Assert.True(guid.Equals(etag));
        }
Exemple #3
0
		public void Etag_to_Guid_conversion()
		{
			var etag = new Raven.Abstractions.Data.Etag("01234567-8901-2345-6789-012345678901");
			var guid = (Guid) etag;
			var nullabelGuid = (Guid?)etag;
			Assert.Equal(etag.ToString(), guid.ToString());
			Assert.Equal(etag.ToString(), nullabelGuid.ToString());
		}
Exemple #4
0
        public void Etag_to_Guid_conversion()
        {
            var etag         = new Raven.Abstractions.Data.Etag("01234567-8901-2345-6789-012345678901");
            var guid         = (Guid)etag;
            var nullabelGuid = (Guid?)etag;

            Assert.Equal(etag.ToString(), guid.ToString());
            Assert.Equal(etag.ToString(), nullabelGuid.ToString());
        }
Exemple #5
0
        public void Etag_converted_to_string_then_to_Guid_and_back_yields_the_same_Etag()
        {
            var originalEtag = new Raven.Abstractions.Data.Etag(UuidType.Documents, 12, 12);

            var etagAsString = originalEtag.ToString();
            var etagAsStringConvertedToGuid = Guid.Parse(etagAsString);

            var etagAfterConversion = (Raven.Abstractions.Data.Etag)etagAsStringConvertedToGuid;

            Assert.Equal(originalEtag, etagAfterConversion);
        }
Exemple #6
0
        public void Etag_converted_to_Guid_then_to_string_and_back_yields_the_same_Etag()
        {
            var originalEtag = new Raven.Abstractions.Data.Etag(UuidType.Documents, 12, 12);

            var etagAsGuid = (Guid)originalEtag;
            var etagAfterConversionToString = etagAsGuid.ToString();

            var etagAfterGuidAndStringConversion = Raven.Abstractions.Data.Etag.Parse(etagAfterConversionToString);

            Assert.Equal(originalEtag, etagAfterGuidAndStringConversion);
        }
Exemple #7
0
		public void Etag_converted_to_string_then_to_Guid_and_back_yields_the_same_Etag()
		{
			var originalEtag = new Raven.Abstractions.Data.Etag(UuidType.Documents, 12, 12);

			var etagAsString = originalEtag.ToString();
			var etagAsStringConvertedToGuid = Guid.Parse(etagAsString);

			var etagAfterConversion = (Raven.Abstractions.Data.Etag)etagAsStringConvertedToGuid;

			Assert.Equal(originalEtag, etagAfterConversion);
		}
Exemple #8
0
		public void Etag_converted_to_Guid_then_to_string_and_back_yields_the_same_Etag()
		{
			var originalEtag = new Raven.Abstractions.Data.Etag(UuidType.Documents, 12, 12);

			var etagAsGuid = (Guid)originalEtag;
			var etagAfterConversionToString = etagAsGuid.ToString();

			var etagAfterGuidAndStringConversion = Raven.Abstractions.Data.Etag.Parse(etagAfterConversionToString);

			Assert.Equal(originalEtag, etagAfterGuidAndStringConversion);
		}
Exemple #9
0
 public PeriodicBackupStatus()
 {
     LastDocsEtag        = Etag.Empty;
     LastAttachmentsEtag = Etag.Empty;
 }