Esempio n. 1
0
        public void TestCreation()
        {
            var sessionId = 0;

            var storage = new AssetStorage();
            var source = new TestAssetSource(storage, sessionId);

            var stored = storage.TryGetAssetSource(sessionId);
            Assert.Equal(source, stored);

            storage.UnregisterAssetSource(sessionId);

            var none = storage.TryGetAssetSource(sessionId);
            Assert.Null(none);
        }
Esempio n. 2
0
        public void TestCreation()
        {
            var sessionId = 0;

            var storage = new AssetStorage();
            var source  = new TestAssetSource(storage, sessionId);

            var stored = storage.TryGetAssetSource(sessionId);

            Assert.Equal(source, stored);

            storage.UnregisterAssetSource(sessionId);

            var none = storage.TryGetAssetSource(sessionId);

            Assert.Null(none);
        }