示例#1
0
 public void ConnectTest()
 {
     IComponentConnector target = new Player();
     int connectionId = 0;
     object target1 = null;
     target.Connect(connectionId, target1);
 }
示例#2
0
 public void createExtraPluginInstanceTest()
 {
     Player target = new Player();
     IPlugin actual;
     actual = target.createExtraPluginInstance();
     Assert.IsTrue(actual is Player, "The returned object is not a valid Player instance. ");
 }
示例#3
0
 public void typeTest()
 {
     Player target = new Player();
     PluginType actual;
     actual = target.type;
     Assert.AreEqual(PluginType.IPresentation, actual, "Player is not of type IPresentation. ");
 }
示例#4
0
 public void propertyViewTest()
 {
     Player target = new Player();
     UserControl actual;
     actual = target.propertyView;
     Assert.AreEqual(actual, target);
 }
示例#5
0
 public void setMementoTest()
 {
     Player target = new Player();
     Memento memento = null;
     target.setMemento(memento);
     Memento expected = new Memento("dd", null, "dd");
     Memento actual;
     actual = target.getMemento();
     Assert.AreEqual(expected.name, actual.name);
     Assert.AreEqual(expected.state, actual.state);
     Assert.AreEqual(expected.mementoPath, actual.mementoPath);
 }
示例#6
0
 public void presentationTypeTest()
 {
     Player target = new Player();
     PresentationPluginType expected = PresentationPluginType.Player;
     PresentationPluginType actual;
     actual = target.presentationType;
     Assert.AreEqual(expected, actual);
 }
示例#7
0
 public void positionReaderTest()
 {
     Player target = new Player();
     int expected = 10;
     int actual;
     target.positionReader = expected;
     actual = target.positionReader;
     Assert.AreEqual(expected, actual);
 }
示例#8
0
 public void PlayerConstructorTest()
 {
     Player target = new Player();
     Assert.IsTrue(target is Player, "The returned object is not a valid Player instance. ");
 }
示例#9
0
 public void namePluginTest()
 {
     Player target = new Player();
     string actual;
     actual = target.namePlugin;
     Assert.AreEqual("PP_Player", actual, "The player is not PP_Player. ");
 }
示例#10
0
 public void InitializeComponentTest()
 {
     Player target = new Player();
     target.InitializeComponent();
 }