Exemplo n.º 1
0
        public void base_signals_are_created_in_network()
        {
            IFigure_provider             figure_provider             = new Figure_provider(create_figure);
            IFigure_provider_initialiser figure_provider_initialiser = new Figure_provider_initialiser(figure_provider);

            figure_provider_initialiser.create_base_signals();
            Assert.AreEqual(
                expected_base_signals.Count,
                figure_provider.get_known_figures().Count
                );
            validate_figures_ids(figure_provider.get_known_figures(), expected_base_signals);
        }
Exemplo n.º 2
0
 private void serialize_figures(serializable.Network out_network)
 {
     foreach (
         Figure figure in
         figure_provider.get_known_figures()
         )
     {
         out_network.figures.Add(
             new serializable.Figure(figure)
             );
         serialize_figure_appearances(out_network, figure);
     }
 }