AddFromAssembly() public method

Adds references to [ViewTestClass]'s from the given assembly.
public AddFromAssembly ( Assembly assembly, string xapFileName ) : int
assembly System.Reflection.Assembly The assembly to load from.
xapFileName string The name of the XAP file containing the class.
return int
        public void ShouldLoadClassesFromAssembly()
        {
            var module = new ViewTestClassesModule();

            PropertyChangedEventArgs args = null;
            module.PropertyChanged += (sender, e) => args = e;

            var sampleAssembly = new SampleViewTestClass1().GetType().Assembly;

            var count = module.AddFromAssembly(sampleAssembly, "File.xap");
            count.ShouldNotBe(0);
            args.PropertyName.ShouldBe(ViewTestClassesModule.PropClasses);
        }