Browse by Tags

  • Testing the Progression Values

    I created two tests to test the common types of progression; the first will use date/time comparisons, where the next one will use numerical comparisons. The first is in the case of calculating a reoccurring task, where the other option is for calculating custom measurements, as we will see. I created...
    Posted to Extreme Programming (Weblog) by bmains on 10-01-2006
  • Testing Serialization

    I tested this method to be sure that it would work: [Test()] public void TestLoadingAndSavingFile() { TaskCollection collection = new TaskCollection(); Task task = new Task("Wash Car", "Auto"); task.Attributes.Add(new MetadataAttribute("IsReoccurring", false)); collection...
    Posted to Extreme Programming (Weblog) by bmains on 09-29-2006
  • Metadata Attribute Bug Fix

    I found a bug with the MetadataAttribute; it seems no matter what, the value is coming back as a string. This is because I return the type from the value. I notice this problem with the loading/saving portion, and as such, I want to do this instead: public Type Type { get { if (_type != null) return...
    Posted to Extreme Programming (Weblog) by bmains on 09-25-2006
  • File Saving/Loading

    Conceptually, I thought about the serialization process, and how I used the XmlSerializer object to serialize my objects into XML previously. However, this wouldn't work because of how the attributes work in the collection; at least, from what I know, it wouldn't work. So I created a MetadataSerializer...
    Posted to Extreme Programming (Weblog) by bmains on 09-25-2006
  • Figuring out What to Test

    Figuring out what to test can be hard to determine. I created this following test: [Test()] public void TestWriteXML() { XmlDocument doc = new XmlDocument(); doc.LoadXml("<TestRoot><TestElement>Test Item</TestElement></TestRoot>"); //Save the document to the file path...
    Posted to Extreme Programming (Weblog) by bmains on 09-19-2006
  • File IO Tests

    For this, we need to determine about the minimum characteristics of file IO capabilities. Whenever you open a streamreader or streamwriter object, you must ensure the object is disposed, and so using is a nice keyword to use for this. An example of using is defined below: using (StreamWriter writer ...
    Posted to Extreme Programming (Weblog) by bmains on 09-18-2006
  • Central Access Refactor

    I wanted to ensure the central access to the tasks would work. In my other blog, I talked about centralized access in a windows application, where the root object could be accessible through the entire application. I created the following class: namespace Reminder.ObjectModel { public class ReminderManager...
    Posted to Extreme Programming (Weblog) by bmains on 09-16-2006
  • int.TryParse

    I had a situation where I had to use int.TryParse. A field in the form that I will show later uses this method to convert a string value to integer. I want to ensure that the value is correct. set { int intValue = 0; //If not an integer value, throw an exception if (!int.TryParse(this.txtReoccurrenceUnit...
    Posted to Extreme Programming (Weblog) by bmains on 09-14-2006
  • Metadata Element Tests

    I refactored the previous MetadataEntry name to MetadataElement because it didn't seemingly make sense. I probably should have left it go, and did a refactor later (after all, the tools have the ability to handle this kind of change); however, I chose to do it now. Some advice that I got from a Ron...
    Posted to Extreme Programming (Weblog) by bmains on 09-12-2006
  • Lingering Problems

    I found one of the problems with sorting; I didn't calculate desending sorting. For instance, the integer values -1, 0, 1 tell you whether the first value is less than the second value, the same, or opposite. However, in descending order, you have to reverse the direction. So, in order to do that...
    Posted to Extreme Programming (Weblog) by bmains on 09-12-2006
Page 1 of 2 (15 items) 1 2 Next >