public static void WritePrimitiveIImmutableQueueT()
        {
            IImmutableQueue <int> input = ImmutableQueue.CreateRange(new List <int> {
                1, 2
            });

            string json = JsonSerializer.Serialize(input);

            Assert.Equal("[1,2]", json);

            StringIImmutableQueueWrapper input2 = new StringIImmutableQueueWrapper(new List <string> {
                "1", "2"
            });

            json = JsonSerializer.Serialize(input2);
            Assert.Equal(@"[""1"",""2""]", json);
        }
        public async Task WritePrimitiveIImmutableQueueT()
        {
            IImmutableQueue <int> input = ImmutableQueue.CreateRange(new List <int> {
                1, 2
            });

            string json = await JsonSerializerWrapperForString.SerializeWrapper(input);

            Assert.Equal("[1,2]", json);

            StringIImmutableQueueWrapper input2 = new StringIImmutableQueueWrapper(new List <string> {
                "1", "2"
            });

            json = await JsonSerializerWrapperForString.SerializeWrapper(input2);

            Assert.Equal(@"[""1"",""2""]", json);
        }
 // Call only when testing serialization.
 public void Initialize()
 {
     MyStringIImmutableQueueWrapper = new StringIImmutableQueueWrapper(new List <string> {
         "Hello"
     });
 }