private static void AssertUUTObjects(IReadOnlyBindingCollection bindingCollection, string symbolName, string expected)
 {
     foreach (var uutObject in bindingCollection.GetSymbols())
     {
         var actual = uutObject.GetValue(symbolName);
         Assert.That(actual, Is.EqualTo(expected));
     }
 }
Example #2
0
        public void ChangeNamespace(string @namespace)
        {
            if (_context == null)
            {
                throw new InvalidOperationException("Sandbox has not been initialized yet.");
            }

            var types = _context.GetTypes()
                        .Where(type => type.Namespace != null && type.Namespace == @namespace)
                        .ToArray();

            var bindingFactory = new BindingFactoryFacade(types);

            BindingCollection = bindingFactory.CreateBindings();
        }