public void should_put_target_in_with_true_result()
        {
            var foundry = new Foundry();
            foundry.Targets.Add(target);
            targetsBridge.PutTarget(target).Should().BeTrue();

            targetsBridge.DeleteTarget(target);
        }
Пример #2
0
 public static void MakeSureSettingsJsonFoundryExists()
 {
     if (string.IsNullOrWhiteSpace(Settings.Default.Foundry))
     {
         var foundry = new Foundry();
         Settings.Default.Foundry = foundry.ToJson();
         Settings.Default.Save();
     }
 }
        public void should_delete_target_after_put_with_true_result()
        {
            var foundry = new Foundry();
            foundry.Targets.Add(target);

            targetsBridge.PutTarget(target);
            targetsBridge.DeleteTarget(target);

            targetsBridge.GetTargets().Count.Should().Be(0);
        }