コード例 #1
0
 public void ToFromBinary_NonSpatialAffinityKey_WithProjectGuidAndKeyName()
 {
     SimpleBinarizableInstanceTester.TestStruct(new NonSpatialAffinityKey {
         ProjectUID = Guid.NewGuid(), KeyName = "key name"
     },
                                                "Empty NonSpatialAffinityKey not same after round trip serialisation with project and key name");
 }
コード例 #2
0
 public void ToFromBinary_NonSpatialAffinityKey_WithKeyName()
 {
     SimpleBinarizableInstanceTester.TestStruct(new NonSpatialAffinityKey {
         KeyName = "key name"
     },
                                                "Empty NonSpatialAffinityKey not same after round trip serialisation with key name");
 }
コード例 #3
0
 public void ToFromBinary_SubGridSpatialAffinityKey_WithProjectUID()
 {
     SimpleBinarizableInstanceTester.TestStruct(new SubGridSpatialAffinityKey
     {
         ProjectUID = Guid.NewGuid()
     },
                                                "SubGridSpatialAffinityKey with project UID not same after round trip serialisation");
 }
コード例 #4
0
 public void ToFromBinary_TAGFileBufferQueueKey_WithFileName()
 {
     SimpleBinarizableInstanceTester.TestStruct(new TAGFileBufferQueueKey
     {
         FileName = "A-TAG-File.tag"
     },
                                                "TAGFileBufferQueueKey with file name not same after round trip serialisation");
 }
コード例 #5
0
 public void ToFromBinary_TAGFileBufferQueueKey_WithFileNameProjectAndAsset()
 {
     SimpleBinarizableInstanceTester.TestStruct(new TAGFileBufferQueueKey
     {
         FileName   = "A-TAG-File.tag",
         ProjectUID = Guid.NewGuid(),
         AssetUID   = Guid.NewGuid()
     },
                                                "TAGFileBufferQueueKey with file name, project and asset UIDs not same after round trip serialisation");
 }
コード例 #6
0
 public void ToFromBinary_SubGridSpatialAffinityKey_WithProjectUIDAndLocation()
 {
     SimpleBinarizableInstanceTester.TestStruct(new SubGridSpatialAffinityKey
     {
         Version    = 123,
         ProjectUID = Guid.NewGuid(),
         SubGridX   = 12345,
         SubGridY   = 56789
     },
                                                "SubGridSpatialAffinityKey with Project UID and location not same after round trip serialisation");
 }
コード例 #7
0
 public void ToFromBinary_SubGridSpatialAffinityKey_WithProjectUIDLocationAndSegmentIdentifier()
 {
     SimpleBinarizableInstanceTester.TestStruct(new SubGridSpatialAffinityKey
     {
         Version               = 123,
         ProjectUID            = Guid.NewGuid(),
         SubGridX              = 12345,
         SubGridY              = 56789,
         SegmentStartDateTicks = 123,
         SegmentEndDateTicks   = 456
     },
                                                "SubGridSpatialAffinityKey with Project UID, location and segment identifier not same after round trip serialisation");
 }
コード例 #8
0
 public void ToFromBinary_SubGridSpatialAffinityKey_Simple()
 {
     SimpleBinarizableInstanceTester.TestStruct <SubGridSpatialAffinityKey>("Empty SubGridSpatialAffinityKey not same after round trip serialisation");
 }
コード例 #9
0
 public void ToFromBinary_TAGFileBufferQueueKey_Simple()
 {
     SimpleBinarizableInstanceTester.TestStruct <TAGFileBufferQueueKey>("Empty TAGFileBufferQueueKey not same after round trip serialisation");
 }