Back to index

libappindicator  12.10.0
Public Member Functions | Private Member Functions | Private Attributes
Ayatana.AppIndicator.Test.IndicatorTest Class Reference

List of all members.

Public Member Functions

void Init ()
void TestProperties ()
void TestSetProperties ()

Private Member Functions

void Update ()

Private Attributes

ApplicationIndicator indicator

Detailed Description

Definition at line 30 of file TestIndicator.cs.

Member Function Documentation

Definition at line 41 of file TestIndicator.cs.

                        Application.Init ();

                        Console.WriteLine ("Init()");

                        indicator = new ApplicationIndicator ("my-id", "my-name", Category.ApplicationStatus);

                        Console.WriteLine ("Created indicator");


Definition at line 55 of file TestIndicator.cs.

                        Console.WriteLine ("TestProperties()");

                        Assert.AreNotSame (indicator, null);

                        Assert.AreEqual (indicator.IconName, "my-name");
                        Assert.AreEqual (indicator.ID, "my-id");
                        Assert.AreEqual (indicator.Status, Category.ApplicationStatus);

                        Console.WriteLine ("End..");

Definition at line 69 of file TestIndicator.cs.

                        Console.WriteLine ("TestSetProperties");

                        indicator.Status = Status.Attention;
                        indicator.AttentionIconName = "my-attention-name";

                        Assert.AreEqual (indicator.Status, Status.Attention);
                        Assert.AreEqual (indicator.AttentionIconName, "my-attention-name");

                        Console.WriteLine ("End..");

Definition at line 34 of file TestIndicator.cs.

                        while (MainContext.Pending ())

Member Data Documentation

ApplicationIndicator Ayatana.AppIndicator.Test.IndicatorTest.indicator [private]

Definition at line 32 of file TestIndicator.cs.

The documentation for this class was generated from the following file: