setNakedKey() public method

public setNakedKey ( string key ) : void
key string
return void
        public void testGetKey()
        {
            WaveUnitConfigElementStub e = new WaveUnitConfigElementStub();
            e.setNakedKey( "Foo" );
            Assert.AreEqual( "Foo", e.getKey() );

            e.setNakedKey( null );
            Assert.NotNull( e.getKey() );
            Assert.AreEqual( "", e.getKey() );
        }
Exemplo n.º 2
0
        public void testGetKey()
        {
            WaveUnitConfigElementStub e = new WaveUnitConfigElementStub();

            e.setNakedKey("Foo");
            Assert.AreEqual("Foo", e.getKey());

            e.setNakedKey(null);
            Assert.NotNull(e.getKey());
            Assert.AreEqual("", e.getKey());
        }
 public void testSetKey()
 {
     WaveUnitConfigElementStub e = new WaveUnitConfigElementStub();
     e.setNakedKey( null );
     e.setKey( "Bar" );
     Assert.AreEqual( "Bar", e.getNakedKey() );
 }
Exemplo n.º 4
0
        public void testSetKey()
        {
            WaveUnitConfigElementStub e = new WaveUnitConfigElementStub();

            e.setNakedKey(null);
            e.setKey("Bar");
            Assert.AreEqual("Bar", e.getNakedKey());
        }