public void When_PropertyInteger_ValuesSaved() { IsfProperty <int> Property_Integer = new IsfProperty <int>( "KeyInteger", 111); Assert.IsTrue(Property_Integer.Value == 111); Property_Integer.Value = 12345; Assert.IsTrue(Property_Integer.Value == 12345); }
public void When_PropertyEnum_ValuesSaved() { IsfProperty <CasBase.Scenario> Property_Scenario = new IsfProperty <CasBase.Scenario>( "KeyEnumScenario", CasBase.Scenario.GreyMix); Assert.IsTrue(Property_Scenario.Value == CasBase.Scenario.GreyMix); Property_Scenario.Value = CasBase.Scenario.GreyDepth; Assert.IsTrue(Property_Scenario.Value == CasBase.Scenario.GreyDepth); }
public void When_Note_Compare_Isonames_posSuBucket_Values(int count) { CwaNote note = new CwaNote(); note.posSuBucket = new Vector2(1, 11) * count; for (int i = 0; i < count; ++i) { note.Isonames.Add(DateTime.Now.AddDays(i), $"file{i}"); } IsfProperty <CwaNote> Property_Note = new IsfProperty <CwaNote>( CwaNotesBase.Root.GetFilenameCwaNote(DateTime.Now), new CwaNote()); Property_Note.Value = note; Assert.IsTrue(Property_Note.Value.posSuBucket == new Vector2(1, 11) * count); Assert.IsTrue(Property_Note.Value.Isonames.Count == count); }