public void SerializationTestAddClear()
        {
            var harness = new SerializationContainerHarness();

            var sr = harness.Service;

            sr.Add(new JsonContractSerializer());

            Assert.AreEqual(sr.Count, 1);

            sr.Clear();
            Assert.AreEqual(sr.Count, 0);

            sr.Add(new JsonContractSerializer());
            Assert.AreEqual(sr.Count, 1);

            try
            {
                harness.Start();
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }
        public void SerializationTestEmptyException()
        {
            var harness = new SerializationContainerHarness();

            try
            {
                harness.Start();
            }
            catch (PayloadSerializerCollectionIsEmptyException pex)
            {
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }
        public void SerializationTest1()
        {
            var harness = new SerializationContainerHarness();

            var sr = harness.Service;

            var srJson = sr.Add(new JsonContractSerializer());

            //var srBson = sr.Add(new BsonContractSerializer());
            //var srJsonRaw = sr.Add(new JsonRawSerializer());
            //var srBsonRaw = sr.Add(new BsonRawSerializer());

            try
            {
                harness.Start();
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }