public void TestSubscriptionId() { //new SubscriptionId SubscriptionId subscriptionId = new SubscriptionId(2); //get bytes var bytes = subscriptionId.GetBytes(); Assert.AreNotEqual(0, bytes.Length); byte[] bytesId = new byte[4] { 2, 0, 0, 0 }; //new SubscriptionId from bytes SubscriptionId subscriptionIdFromBytes = SubscriptionId.Parse(bytesId, 0); Assert.AreEqual(subscriptionId.Id, subscriptionIdFromBytes.Id); }